PROG=go-todo
REPO=registry.cn-hangzhou.aliyuncs.com/borlandc

default:
	go build

linux:
	GOOS=linux GOARCH=amd64 go build -o ${PROG}

docker: linux
	docker build -t wliang/${PROG}:latest .

push:
	docker tag wliang/${PROG}:latest ${REPO}/${PROG}:latest
	docker push ${REPO}/${PROG}:latest

tag:
	docker tag ${REPO}/${PROG}:latest ${REPO}/${PROG}:${IMAGE_TAG}
	docker push ${REPO}/${PROG}:${IMAGE_TAG}
